package com.situ.student.dao;

import java.util.List;
import java.util.Map;

import com.situ.student.entity.Student;
import com.situ.student.entity.StudentSearchCondition;

public interface IStudentDao {
	public abstract int insert(Student student);
	/**
//	 * 返回所有学生的集合
	 * @return
	 */
	public abstract List<Student> list(); // findAll()
	/**
	 * 根据id删除
	 * @param id
	 * @return 删除成功返回true 失败返回false
	 */
	public abstract int deleteById(Integer id);
	/**
	 * 根据名字来查找
	 * @param name
	 * @return
	 */
	public abstract List<Student> findByName(String name);// findByName
	
	public abstract Student findById(Integer id);
	public abstract int update(Student student);
	/**
	 * 返回一共有多少条记录
	 * @return
	 */
	public abstract int getTotalCount();
	
	public abstract List<Map<String, Object>> pageList(int offset, int pageSize);
	public abstract int deleteAll(String[] selectIds);
	public abstract int selectCountByName(String name);
	public abstract int getTotalCount(StudentSearchCondition searchCondition);
	public abstract List<Map<String, Object>> pageList(StudentSearchCondition searchCondition);
	
	
}
